package com.shop.dao;

import com.shop.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface GoodsMapper {
    int deleteByPrimaryKey(String goodsId);

    int insert(Goods record);

    Goods selectByPrimaryKey(String goodsId);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    List<Goods> queryGoodsByCondition(Map<String,Object> params);

    List<Goods> getGoodsSaleByCondition(Map<String,Object> params);

    int updateGoodsByCondition(Map<String,Object> params);
}